]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
util: Export trySpawn()
authorDallas Strouse <dastrouses@gmail.com>
Fri, 11 Aug 2023 15:20:53 +0000 (15:20 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Aug 2023 15:54:49 +0000 (17:54 +0200)
It was private before, and so any users of it (including the
Background Apps menu) would fail to utilize it, making apps fail
to get told to shut down from the Background Apps menu.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6893

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2885>

js/misc/util.js

index 971c6306f45205f4300b2f13efce8aadf51cba04..0201fd112721fd6460caddb6f24e879d95fa4ad6 100644 (file)
@@ -117,7 +117,7 @@ export function spawnApp(argv) {
  * Runs argv in the background. If launching argv fails,
  * this will throw an error.
  */
-function trySpawn(argv) {
+export function trySpawn(argv) {
     let success_, pid;
     try {
         [success_, pid] = GLib.spawn_async(